package com.china.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Longlat entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "longlat", catalog = "chinalnglat")
public class LongLat implements java.io.Serializable {

	// Fields

	private String id;
	private String province;
	private String city;
	private String county;
	private String longitude;
	private String latitude;

	// Constructors

	/** default constructor */
	public LongLat() {
	}

	/** full constructor */
	public LongLat(String id, String province, String city, String county, String longitude, String latitude) {
		this.id = id;
		this.province = province;
		this.city = city;
		this.county = county;
		this.longitude = longitude;
		this.latitude = latitude;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "province", nullable = false, length = 100)
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "city", nullable = false, length = 100)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "county", nullable = false, length = 100)
	public String getCounty() {
		return this.county;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	@Column(name = "longitude", nullable = false, length = 20)
	public String getLongitude() {
		return this.longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	@Column(name = "latitude", nullable = false, length = 20)
	public String getLatitude() {
		return this.latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

}